import Vue from 'vue'
import Router from 'vue-router'
import first from "../components/first.vue"
import EmployeeLogin from "../components/EmployeeLogin.vue"
import Admin from "../components/Admin.vue"
import EmployBoss from "../components/EmployBoss.vue"
import StationBoss from "../components/StationBoss.vue"

import EmployeeOrder from '../components/EmployeeOrder.vue'
import Menu from '../components/Menu.vue'
import WebSorket from '../components/WebSocket.vue'
import AssEmploye from '../components/AssEmploye.vue'
import ChangeAdmin from '../components/ChangeAdmin.vue'
import CheckOrder from '../components/CheckOrder.vue'
import EmployBossHome from '../components/EmployBossHome.vue'
import MonthTotal from '../components/MonthTotal.vue'
import PointGoodsAdmin from '../components/PointGoodsAdmin.vue'
import pointGoodsTypeAdmin from '../components/pointGoodsTypeAdmin.vue'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/first',
    },
    {
      path: '/first',
      component: first
    },
    {
      path: '/employeeLogin',
      component: EmployeeLogin
    },

    {
      path: '/menu',
      component: Menu,
      children: [
        {
          path: '/EmployeeOrder',
          component: EmployeeOrder
        },
        {
          path: '/admin',
          component: Admin
        },
        {
          path: '/employBoss',
          component: EmployBoss
        },
        {
          path: '/stationBoss',
          component: StationBoss
        },
        {
          path: '/assEmploye',
          component: AssEmploye
        },
        {
          path: '/changeAdmin',
          component: ChangeAdmin
        },
        {
          path: '/checkOrder',
          component: CheckOrder
        },
        {
          path: '/employBossHome',
          component: EmployBossHome
        },
        {
          path: '/monthTotal',
          component: MonthTotal
        },
        {
          path: '/pointGoodsAdmin',
          component: PointGoodsAdmin
        },
        {
          path: '/pointGoodsTypeAdmin',
          component: pointGoodsTypeAdmin
        },
        {
          path: '/webSocket',
          component: WebSocket
        },
      ]
    },


  ]
})
